package com.mxfcode.back.service;

import com.mxfcode.bbs_common.response.PageDataResult;
import com.mxfcode.entity.BBSArticle;
import com.mxfcode.entity.BBSPlate;

import java.util.Map;

/**
 * @接口名 BackArticleService
 * @描述 TODO
 * @作者 mxf
 * @创建日期 2021-03-05 14:01
 **/
public interface BackArticleService {

    Map<String, Object> updatePlate(BBSPlate plate) throws Exception;


    Map<String, Object> recoverPlate(String id, Integer status);

    PageDataResult getPlateList(Integer pageNum, Integer pageSize);

    BBSPlate getPlateById(String id);

    BBSArticle getArticleById(String id);

    PageDataResult getArticleList(Integer pageNum, Integer pageSize);

    Map<String, Object> addArticle(BBSArticle article);

    Map<String, Object> updateArticle(BBSArticle article);

    Map<String, Object> del(String id);
}
